package com.yys.springcloud.service.impl;

import com.yys.springcloud.dao.PaymentDao;
import com.yys.springcloud.entities.Payment;
import com.yys.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: cloudalibaba2021
 * @description:
 * @author: Mr.Wu
 * @create: 2021-06-21 15:04
 **/
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;
    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }
    @Override
    public Payment getPaymentId(Long id) {
        return paymentDao.getPaymentId(id);
    }
}